package com.middlegroup.pay.service;

import com.middlegroup.common.model.PayRequest;
import com.middlegroup.common.model.RefundRequestDto;
import com.middlegroup.common.model.TransResult;

/**
 * Created by pc on 2019/1/25.
 */
public interface PayService {

    /**交易服务(微信，支付宝，paypal)
     * @param request
     * @return
     */
    TransResult pay(PayRequest request);

    /**
     * 退款
     * @param request
     * @return
     */
    TransResult refund(RefundRequestDto request);
}
